package com.nearbymap.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.nearbymap.model.MedSearch;

@Controller
public final class MedController {


	@RequestMapping(value = "/med",  method = RequestMethod.GET)
	public String med() {
		return "med";
	}
	@RequestMapping(value = "/med",  method = RequestMethod.POST)
	public String medSearch(@ModelAttribute("SpringWeb")MedSearch medSearch, ModelMap model) {
		return "med";
	}
}